Before i'm execute a text box i will clean them out and prevent there are some thing in the window.
My idea is to clean them out before i'm using the button, greate
SystemAdmin - Tue Sep 07 09:46:32 EDT 2010 |
|
Re: Clean out Mathias Mamsch - Tue Sep 07 16:30:01 EDT 2010
So what is the question? And please do not answer 'How do I do it?' :-) Try being a little specific. It is not clear what "executing a textbox" or "cleaning things in the window" means. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
|
Re: Clean out SystemAdmin - Wed Sep 08 02:21:28 EDT 2010 Mathias Mamsch - Tue Sep 07 16:30:01 EDT 2010
So what is the question? And please do not answer 'How do I do it?' :-) Try being a little specific. It is not clear what "executing a textbox" or "cleaning things in the window" means. Regards, Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
In my code i use a text(box) to show different data.
Something like that (DBE text(DB box,string label,string initial int width,int height,
bool readOnly).
In some situations the textbox show thing from the last run. So i would like (reset or delete or clean) the content before i run the programm.
|
|
Re: Clean out kabr - Wed Sep 08 03:58:29 EDT 2010
Adam,
as to your problem, try:
set(box,"")
as to your posts in general,
why don't you try to be a little bit more verbose?
It would make it easier to understand what you want, and it would probably make you appear more polite.
regards
Karl
|
|
Re: Clean out SystemAdmin - Wed Sep 08 04:44:06 EDT 2010 kabr - Wed Sep 08 03:58:29 EDT 2010
Adam,
as to your problem, try:
set(box,"")
as to your posts in general,
why don't you try to be a little bit more verbose?
It would make it easier to understand what you want, and it would probably make you appear more polite.
regards
Karl
I describe my problems better and detailed
|
|
Re: Clean out SystemAdmin - Wed Sep 08 10:27:14 EDT 2010 SystemAdmin - Wed Sep 08 04:44:06 EDT 2010
I describe my problems better and detailed
If i use
set (box, "")
Everytime it appears the error "incorrect arguments for function (button)"
In the DXL Reference i didn't find anything.
I have try a lot of different codes and position in the script.
1) To put the code 'set(box, "")' before i use my coded generatbutton to
2) void clear {
set (box, "")
]
or something like that. Unitl now i doesn't work.
Please help.
|
|
Re: Clean out dofstead - Wed Sep 08 10:44:46 EDT 2010 SystemAdmin - Wed Sep 08 10:27:14 EDT 2010
If i use
set (box, "")
Everytime it appears the error "incorrect arguments for function (button)"
In the DXL Reference i didn't find anything.
I have try a lot of different codes and position in the script.
1) To put the code 'set(box, "")' before i use my coded generatbutton to
2) void clear {
set (box, "")
]
or something like that. Unitl now i doesn't work.
Please help.
here is a sample that clears a text box:
DB text_db = create "Test box"
DBE text_box = text(text_db, "Type text here:", "", 200, false)
void clear_box(DB dialog) {
set(text_box, "")
}
apply(text_db, "clear", clear_box)
show text_db
|
|
Re: Clean out llandale - Wed Sep 08 17:00:02 EDT 2010 SystemAdmin - Wed Sep 08 10:27:14 EDT 2010
If i use
set (box, "")
Everytime it appears the error "incorrect arguments for function (button)"
In the DXL Reference i didn't find anything.
I have try a lot of different codes and position in the script.
1) To put the code 'set(box, "")' before i use my coded generatbutton to
2) void clear {
set (box, "")
]
or something like that. Unitl now i doesn't work.
Please help.
Not sure about this thread, but "incorrect arguments for function (button)" error is almost always because the call back function does not look like this:
void CallBackName(DBE dbeXX)
Note that an 'apply' and 'close' must reference a function like this:
void CallBackName(DB dbXX).
Taking a DB instead of a DBE parameter.
I suspect, then, perhaps you are defining a button that looks like this:
dbeButton = button(dbBox, "Clear", set(dbeBox, "")).
Which is illegal; the 'button' command must call a function. Look at the other poster's example.
|
|
Re: Clean out SystemAdmin - Thu Sep 09 03:30:21 EDT 2010 llandale - Wed Sep 08 17:00:02 EDT 2010
Not sure about this thread, but "incorrect arguments for function (button)" error is almost always because the call back function does not look like this:
void CallBackName(DBE dbeXX)
Note that an 'apply' and 'close' must reference a function like this:
void CallBackName(DB dbXX).
Taking a DB instead of a DBE parameter.
I suspect, then, perhaps you are defining a button that looks like this:
dbeButton = button(dbBox, "Clear", set(dbeBox, "")).
Which is illegal; the 'button' command must call a function. Look at the other poster's example.
Thank you very much for help! It works
|
|